package com.ming.mallchat.common.common.utils;

import com.ming.mallchat.common.common.domain.dto.RequestInfo;

/**
 * @author 86150
 * @date 2023/09/28
 */
public class RequestHolder {

    private final static ThreadLocal<RequestInfo> THREAD_LOCAL = new ThreadLocal<>();
    public static void set(RequestInfo info){
        THREAD_LOCAL.set(info);
    }

    public static RequestInfo get(){
        return THREAD_LOCAL.get();
    }

    public static void remove(){
        THREAD_LOCAL.remove();
    }

}
